const Role_Apis = {

    // 获取角色列表
    getRoles: {
        method: "get",
        url: '/permission/role'
    },

    // 查询具体角色详细，jointUrl: "/"+roleId
    getRole: {
        method: "get",
        url: '/permission/role'
    },

    // 新增角色
    saveRole: {
        method: "post",
        url: '/permission/role'
    },

    // 修改角色
    updateRole: {
        method: "put",
        url: '/permission/role'
    },

    // 修改角色数据权限
    updateDataScope: {
        method: "put",
        url: '/permission/role/dataScope'
    },

    // 删除角色，jointUrl: "/"+roleId
    deleteRole: {
        method: "delete",
        url: '/permission/role'
    },

    // 修改角色状态
    changeRoleStatus: {
        method: "put",
        url: '/permission/role/changeStatus'
    },

    // 查询角色已授权用户列表
    allocatedUserList: {
        method: "get",
        url: '/permission/role/authUser/allocatedList'
    },

    // 分配用户角色
    allocateUsersWithRole: {
        method: "put",
        url: '/permission/role/authUser/allocate'
    },

    // 查询角色未授权用户列表
    unallocatedUserList: {
        method: "get",
        url: '/permission/role/authUser/unallocatedList'
    },

    // 取消用户授权角色
    cancelAuthUser: {
        method: "put",
        url: '/permission/role/authUser/cancel'
    },

    // 批量取消用户授权角色
    multipleCancelAuthUser: {
        method: "put",
        url: '/permission/role/authUser/cancelMultiple'
    }
}

export default Role_Apis
